package com.clouds.wms.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.clouds.wms.bean.Cmsmd;
import com.clouds.wms.dao.CmsmdDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

@Service("cmsmdService")
public class CmsmdServiceImpl implements CmsmdService {

	@Resource(name="cmsmdDao")
	private CmsmdDao cmsmdDao;

	@Override
	public Cmsmd getCmsmdByMdaa(String mdaa) throws SysException {
		return cmsmdDao.getCmsmdByMdaa(mdaa);
	}

	
	@Override
	public PagesBean getCmsmdList(String mdaa, String mdac, String mdad, int offset, int pageSize) throws SysException {
		return cmsmdDao.getCmsmdList(mdaa, mdac, mdad, offset, pageSize);
	}

	@Override
	public int saveCmsmd(Cmsmd cmsmd) throws SysException {
		return cmsmdDao.saveCmsmd(cmsmd);
	}

	@Override
	public int updateCmsmd(Cmsmd cmsmd) throws SysException {
		return cmsmdDao.updateCmsmd(cmsmd);
	}

	@Override
	public int deleteCmsmdByMdaa(String mdaa) throws SysException {
		return cmsmdDao.deleteCmsmdByMdaa(mdaa);
	}

	@Override
	public int updateCmsmdMdab(String mdaa, String mdab) throws SysException {
		return cmsmdDao.updateCmsmdMdab(mdaa, mdab);
	}

	@Override
	public List<Cmsmd> getAllCmsmdList() throws SysException {
		return cmsmdDao.getAllCmsmdList();
	}

}
